package searcher;

/**
 * Thrown when the user stops a search
 * 
 * @version $Id: StopException.java,v 1.2 2006/06/26 13:51:50 abutler Exp $
 */
public class StopException extends RuntimeException
{
	private final FileMatch [] theFileMatches;

	/**
	 * @param fileMatches The matches that had already been found before the
	 *        search was stopped
	 */
	public StopException(FileMatch [] fileMatches)
	{
		theFileMatches = fileMatches;
	}

	/**
	 * @return The matches that had already been found before the search was
	 *         stopped
	 */
	public FileMatch [] getFileMatches()
	{
		return theFileMatches;
	}
}
